package com.nt.train.dto;

/**
 * 汽车
 * @author hlf
 * @version 1.0
 * @date 2022/8/3 13:46
 */
public class Car {

    private String carName;

    private String carAuthor;

    public Car() {
    }

    public Car(String carName, String carAuthor) {
        this.carName = carName;
        this.carAuthor = carAuthor;
    }

    public String getCarName() {
        return carName;
    }

    public void setCarName(String carName) {
        this.carName = carName;
    }

    public String getCarAuthor() {
        return carAuthor;
    }

    public void setCarAuthor(String carAuthor) {
        this.carAuthor = carAuthor;
    }

    @Override
    public String toString() {
        return "Car{" +
                "carName='" + carName + '\'' +
                ", carAuthor='" + carAuthor + '\'' +
                '}';
    }
}
